package Adapter;

public  class TV implements TwoElectricOutlet{
    String name;
    public TV(){
        name = "海信";
    }

    public TV(String name){
        this.name=name;
    }

    @Override
    public void connectElectrCurrent() {
        turnOn();
    }


    private void turnOn() {
        System.out.println(name + "开始播放节目。");
    }
}
